package practicedemo4;

import java.util.Scanner;


public class practicedemo3 {
    public static void main(String[] args){
        StephenHu();
    }
    public static void StephenHu(){
        Scanner sc = new Scanner(System.in);
        System.out.println("输出一个三位数："+'\t');
        int x = sc.nextInt();
        //百位
        int a = x/100;
        //十位
        int b = (x/10)%10;
        //个为
        int c = x%10;
        System.out.println("百位:"+'\t'+a+'\n'+"十位:"+'\t'+b+'\n'+"个位:"+'\t'+c);
    }
}
